//
//  HLTempViewController.swift
//  HLWeiBo
//
//  Created by jack on 15/12/5.
//  Copyright © 2015年 jack. All rights reserved.
//

import UIKit

class HLTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "当前是第\(navigationController?.childViewControllers.count ?? 0)级控制器"
        
        view.backgroundColor = UIColor.whiteColor()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", style: UIBarButtonItemStyle.Plain, target: self, action: "push")
        navigationItem.rightBarButtonItem?.tintColor = UIColor.darkGrayColor()
    }
    
    @objc private func push() {
        
        let vc = HLTempViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }   

}
